package cn.pomelo.secondskill.mapper;

import cn.pomelo.secondskill.model.Goods;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface GoodsMapper {
    int deleteByPrimaryKey(Integer id);

    List<Goods> selectAllGoods();

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);
    String selectGoodsNameById(Integer id);

    BigDecimal selectPriceById(Integer id);
}